/**
 *TypeScript中无法使用使用RN的react和react-native，因此前面需要安装@types/react和
 *@types/react-native来实现TypeScript中对react及react-native的支持
 */
import React,{Component} from 'react';
import {View,Text} from 'react-native'; 

//导入PersonImpl类
import {PersonImpl} from './PersonImpl';

export default class AppComponent extends Component{
  
  componentDidMount(){
    //实例化PersonImpl类
    let person = new PersonImpl(20,'Tom');
    //调用PersonImpl对象的getInfo方法
    console.log(person.getInfo());
  }
  
  render () {
    return (
      <View>
        <Text>lewis</Text>
      </View>
    );
  }
}